import request from '@/utils/open/request'
export const permission = {
  /**
   * test
   * @params {Object} params
   */
  getPower(params) {
    return new Promise((resolve, reject) => {
      // debugger
      request.get('/power/getPower', {}).then(res => {
        // debugger
        if (res.code === 200) {
          resolve(res)
        } else {
          reject(res)
        }
      }).catch(err => {
        // debugger
        reject(err)
      })
    })
  },
}